<!DOCTYPE html>
<html>
<head>
    <title>商品列表</title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="../../../css/bootstrap.min.css">
    <link rel="stylesheet" href="../../../css/font-awesome.min.css">
    <link rel="stylesheet" href="../../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
    <link rel="stylesheet" href="../../../plugins/ztree/css/metroStyle/metroStyle.css">
    <link rel="stylesheet" href="../../../css/main.css">
    <script src="../../../libs/jquery.min.js"></script>
    <script src="../../../plugins/layer/layer.js"></script>
    <script src="../../../libs/bootstrap.min.js"></script>
    <script src="../../../libs/vue.min.js"></script>
    <script src="../../../libs/accounting.min.js"></script>
    <script src="../../../plugins/jqgrid/grid.locale-cn.js"></script>
    <script src="../../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
    <script src="../../../plugins/ztree/jquery.ztree.all.min.js"></script>
    <script src="../../../js/common.js"></script>
    <script src="../../../libs/ajaxupload.js"></script>
</head>
<body>
<div id="dcapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.key" @keyup.enter="query" placeholder="商品名称">
            </div>
            <a class="btn btn-default" @click="query">查询</a>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default" id="detal">
        <table class="ui-jqgrid-btable ui-common-table table table-bordered">
            <colgroup>
                <col width="120">
                <col width="100">
                <col width="30">
                <col width="30">
                <col width="30">
            </colgroup>
            <thead>
            <tr>
                <th>商品图片</th>
                <th>名称</th>
                <th>数量</th>
                <th>单价</th>
                <th>总价</th>
            </tr>
            </thead>
            <tbody>
            <tr v-for="item in orderDetails">
                <td><img :src="item.url" style="width:100px;height:100px;" class="img-rounded" /></td>
                <td>{{item.goodsName}}</td>
                <td>{{item.goodsNum}}</td>
                <td>{{item.onePrice}}</td>
                <td>{{item.totalAmt}}</td>
            </tr>
            </tbody>
        </table>
    </div>
</div>

<script src="../../../js/modules/merchant/order/orderList.js"></script>
</body>
</html>